-- GENERATED SPELL FOR [Vicar Hieronymus] --


function spell0_17914(pUnit, Event) --@Blessing of Light,Heal--
pUnit:FullCastSpellOnTarget(32770,pUnit)
pUnit:RegisterEvent('Sorts_17914', 520, 1)
end

function spell1_17914(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(32769,pUnit)
pUnit:RegisterEvent('Sorts_17914', 2500, 1)
end

function Sorts_17914(pUnit, Event)
local choix_sorts_17914 = math.random(0, 1)
if choix_sorts_17914 == 0 then
pUnit:RegisterEvent('spell0_17914', 1, 1)
end
if choix_sorts_17914 == 1 then
pUnit:RegisterEvent('spell1_17914', 1, 1)
end
end

function mob17914_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17914', math.random(1500, 3000), 1)
end

function mob17914_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17914_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17914_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17914, 1, 'mob17914_Action')
RegisterUnitEvent(17914, 2, 'mob17914_Leave')
RegisterUnitEvent(17914, 3, 'mob17914_Kill')
RegisterUnitEvent(17914, 4, 'mob17914_Die')
